﻿using MediatR;

namespace EMall.Events
{
    public abstract class Event : IEvent, INotification
    {
        public string EventId { get; set; }
        public DateTime OccurredOn { get; set; }
        protected Event()
        {
            EventId = Guid.NewGuid().ToString();
            OccurredOn = DateTime.Now;
        }
    }
}
